home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 March / PCWorld_2002-03_cd.bin / Software / TemaCD / xteq / setup.exe / {app} / plugins / XQ Network Login User.xpl < prev    next >
Text File  |  2001-04-13  |  1KB  |  47 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Startup\Windows 9x/ME\61) Inside Login Window"
  5. "UIPATH 2"="Startup/Shutdown\Startup\Windows NT/2K/XP\31) Inside Login Window"
  6. "NAME"="Next Username"
  7. "VERSION"="2.04"
  8. "OSVERSION"="111111"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Username"
  11. "DESCRIPTION 1"="This plug-in can be used to change the username that will be displayed in the next login window."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16. "COMMENT 2"="Thanks to CptSiskoX for his help!"
  17.  
  18.  
  19. sV_W9x="HKLM\Network\Logon\Username"
  20. sV_W2K="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\DefaultUserName"
  21.  
  22. sV_Path=""
  23.  
  24. Sub Plugin_Initialize 
  25.     If GetWinVer=1 or GetWinVer=3 or GetWinVer=5 then
  26.        'W9x
  27.        sV_Path=sV_W9x
  28.     else
  29.        'NT/2K 
  30.        sV_Path=sV_W2K
  31.     end if 
  32.  
  33.     s=RegReadValue(sV_Path)
  34.     SetUIElement 1,s
  35. End Sub
  36.  
  37. Sub Plugin_CheckData(ElementIndex)
  38. End Sub
  39.  
  40. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  41.  s=GetUIElement(1)
  42.  Call RegWriteValue(sV_Path,s,1)
  43. End Sub
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.